#pragma once

#include <SFML/Graphics.hpp>
#include <vector>

struct Image
{
	sf::Texture* m_xTexture;
	std::string m_sPath;
	bool m_bPersistent;
};

class ImgLoader
{
public:
	sf::Texture* loadImage(std::string p_Path, int p_DrawPriority, bool p_Persistent = false);

	void ClearImages();
	void Cleanup();

	static ImgLoader* GetInstance();
	void Destroy();

private:

	std::vector<Image> m_xImages;
	static ImgLoader* m_xInstance;

	ImgLoader();
	~ImgLoader();
};
